import request from '@/utils/request'
//当前商家下的所有评论
export function fetchEvaluateList(pageRequest) {
  return request({
    url:'/store/evaluate/queryAllByStoreIdPage',
    method:'post',
    data:pageRequest
  })
}
export function deleteEvaluate(ids) {
  return request({
    url:'',
    method:'post',
    data:{"ids":ids}
  })
}
export function queryBusinessInfoByStoreId(storeId) {
  return request({
    url:'/store/merchantBusinessInfo/query?storeId='+storeId,
    method:'get'
  })
}
export function queryBaseInfoByStoreID(storeId) {
  return request({
    url: '/store/merchantStore/query?id='+storeId ,
    method:'get',
  })
}
export function addBusinessInformation(entity) {
  return request({
    url: '/store/merchantBusinessInfo/add',
    method:'post',
    data:entity
  })
}
export function editBusinessInformation(entity) {
  return request({
    url: '/store/merchantBusinessInfo/update',
    method:'post',
    data:entity
  })
}
export function fethcCommunityList(state) {
  return request({
    url: '/web/areaWeb/query',
    method:'post',
    data:{"state":state}
  })
}
export function fetchStoreTypeList() {
  return request({
    url: '/web/storeWeb/query',
    method:'get',
  })
}
export function updateStoreInfo(param) {
  return request({
    url: '/store/merchantStore/update',
    method:'post',
    data:param
  })
}
export function updateStorePic(param) {
  return request({
    url: '/store/merchantStore/updateStorePic',
    method:'post',
    data:param
  })
}
